<?php

define("SERVER", "localhost");
define("USER", "root");
define("PASSWORD", "");

//"localhost","wh00105_jp","a99HngU5"



function conectar_bd(){
	$link=mysql_connect(SERVER,USER,PASSWORD);
	mysql_select_db("bda", $link);
	
	return $link;
}


function mysql_insert($table, $inserts) {
    
    $keys = array_keys($inserts);

    return mysql_query('INSERT INTO `'.$table.'` (`'.implode('`,`', $keys).'`) VALUES (\''.implode('\',\'', $inserts).'\')');
}

?>